package com.blb.community_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.community_admin.entity.SysDept;
import com.blb.community_admin.entity.vo.DeptVO;

import java.util.List;

public  interface SysDeptMapper extends BaseMapper<SysDept> {

    List<DeptVO> selectDepts();

    /**
     * 按条件查询部门表
     * @param deptName
     * @param status
     * @return
     */
    List<DeptVO> selectDeptsByTerm(String deptName,String status);

    /**
     * 根据userId查询部门信息
     * @param userId
     * @return
     */
    SysDept selectDeptByuserId(long userId);


}
